﻿LOLMatrix.match = (function () {
    return {
        //查看直播
        showVideo:function(){
            //video box
            $(".show-video,.videos-item").bind("click",function(e){
                e.preventDefault();
                $(".p-win").not('div.video-win').fadeOut();
                LOLMatrix.common.dialog.showDialog($('div.video-win'));
            });
        },

        //比赛详情
        showMatchDetailVideo:function(){
            $(".match-detail-btn").bind("click",function(e){
                e.preventDefault();
                $(".p-win").not('div.video-win').fadeOut();
                LOLMatrix.common.dialog.showDialog($('div.match-detail-video'));
            });
            //test
           // $(".match-detail-btn").eq(0).click();
        },


        //赛事预测
        prediction: function () {
            var prediction=$(".prediction");
            if ($(".sporting-item",prediction).length > 4) {
                console.log('slick');
                $('.p-m-c',prediction).slick({slidesToShow: 4, slidesToScroll: 1});
            }
        },

        //add scroll
        integralScroll: function () {
            $(".integral .p-select-body").mCustomScrollbar();
        },
    }
})();

$(function () {
    var match = LOLMatrix.match;
    match.showVideo();
    match.showMatchDetailVideo();
    match.prediction();
  //  match.integralScroll();
});